package com.jfxb.ssm.service.user.impl;

import com.jfxb.ssm.dao.user.UserMapper;
import com.jfxb.ssm.entity.user.User;
import com.jfxb.ssm.service.user.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserById(Long userId) {
        return userMapper.selectByPrimaryKey(userId);
    }

}
